package com.orangecy.rulesubscribe.rulebuilder;

import com.orangecy.common.enums.StatusEnum;
import com.orangecy.rulesubscribe.define.RuleDefineDTO;
import com.orangecy.rulesubscribe.enums.ActuatorTypeEnum;
import com.orangecy.rulesubscribe.enums.RuleDimensionEnum;

/**
 * @Author : orangeCy.奕
 * @Product : 猎豹养成产品源码
 * @Time : 2021/10/26
 * @Desc :
 */
public class ItemCenterRuleBuilder {

    private ItemCenterRuleBuilder(){}

    public static RuleDefineDTO buildIcRule4SkuOverSize() {
        RuleDefineDTO ruleDefineDTO = new RuleDefineDTO();
        ruleDefineDTO.setRuleCode("CHECK-SKU-OVER-SIZE");
        ruleDefineDTO.setRuleName("校验商品规格数是否达到上限");
        ruleDefineDTO.setRuleDimension(RuleDimensionEnum.ITEM_CENTER_SKU.code);
        ruleDefineDTO.setRuleDesc("校验商品规格数是否达到上限");
        ruleDefineDTO.setActuatorType(ActuatorTypeEnum.BEAN_PROCESSOR.getType());
        ruleDefineDTO.setActuatorProcessor("itemSkuMaxSizeCheckerComponent");
        ruleDefineDTO.setActuatorContext("extendJSON");
        ruleDefineDTO.setStatus(StatusEnum.EFFECT.getCode());
        return ruleDefineDTO;
    }
}